//
// MaFenetre.hpp for  in /home/goldbe_y//cpp/plazza-2014-bramar_g/Qt
//
// Made by yoni goldberg
// Login   <goldbe_y@epitech.net>
//
// Started on  Sun Apr 17 16:36:55 2011 yoni goldberg
// Last update Sat May 28 18:22:05 2011 leo faucon
//

#ifndef __MAFENETRE_H__
# define __MAFENETRE_H__

#include <QList>
#include <QApplication>
#include <QLineEdit>
#include <QLabel>
#include <QWidget>
#include <QGridLayout>
#include <QPushButton>
#include <QMessageBox>
#include <QString>
#include <QTableWidget>
#include <QHeaderView>
#include <QFileDialog>
#include <QFrame>
#include <QHBoxLayout>

#include "Maths.hpp"
#include "Parse.hpp"

class MaFenetre : public QWidget
{
  Q_OBJECT;
public:
  MaFenetre(QApplication &app);

private:
  void		Place(QApplication &app);
  void		calc();

  QLabel		*Bienvenue;
  QLabel		*Consigne;

  QLabel	*reg1;
  QLabel	*reg2;
  QLabel	*coef;

  QList<QLabel *>	type1;
  QList<QLabel *>	value1;

  QList<QLabel *>	type2;
  QList<QLabel *>	value2;

  QLabel	*type3;
  QLabel	*value3;

  QTableWidgetItem	*item;
  QTableWidget		*table;

  QGridLayout		*layout;
  QPushButton		*Quit;
  QPushButton		*calculer;
  QPushButton		*charger;
  QPushButton		*graph;

  Parse		*Parseur;

  Maths		*math;
  Maths		*math2;

public slots:
  void		fct_calc();
  void		fct_table();
  void		fct_graph();
};

static const std::string tab[5] =
  {
    "a = ",
    "b = ",
    "s =",
    "r = ",
  };

#endif /* !__MAFENETRE_H__ */
